package mate.events
{
	import classespinkpony.Address;
	import classespinkpony.Practice;
	import classespinkpony.User;
	
	import flash.events.Event;
	
	import mx.collections.ArrayCollection;

	public class UpdateRegistrationEvent extends Event
	{
		public static const UPDATEPERSONALINFORMATION:String = "updatePersonalInformation";
		public static const WRITEPERSONALINFORMATION:String = "writePersonalInformation";
		public static const UPDATEPRACTICEINFORMATION:String = "updatePracticeInformation";
		public static const WRITEPRACTICEINFORMATION:String = "writePracticeInformation";
		public static const WRITEADDRESSINFORMATION:String = "writeAddressInformation";
		public static const GOTOCONTROLPANELHOME:String = "goToControlPanelHome";
		public static const GOTOADDPRACTICE:String = "goToAddPractice";
		public static const SAVENEWPRACTICES:String = "saveNewPractices";
		public static const SAVENEWPRACTICE:String = "saveNewPractice";
		public static const SAVEPRACTICEADDRESS:String = "savePracticeAddress";
		
		private var _user:User;
		private var _practice:Practice;
		private var _address:Address;
		private var _practices:ArrayCollection;
		
		private var _searchNumber: Number;
		
		[Bindable]
		public function get practices():ArrayCollection
		{
			return _practices;
		}

		public function set practices(value:ArrayCollection):void
		{
			_practices = value;
		}

		[Bindable]
		public function set user(user:User):void{
			this._user = user;
		}
		public function get user():User{
			return this._user;
			
		}

		public function get practice():Practice
		{
			return _practice;
		}

		[Bindable]
		public function set practice(value:Practice):void
		{
			_practice = value;
		}

		[Bindable]
		public function get address():Address
		{
			return _address;
		}

		public function set address(value:Address):void
		{
			_address = value;
		}

		[Bindable]
		public function get searchNumber():Number
		{
			return _searchNumber;
		}

		public function set searchNumber(value:Number):void
		{
			_searchNumber = value;
		}

		
		public function UpdateRegistrationEvent(type:String, bubbles:Boolean=true, cancelable:Boolean=false)
		{
			super(type, bubbles, cancelable);
		}
	}
}